import Vue from 'vue'
import {getAction } from '@/api/manage'
// import {getEngineerProduceList} from '@/api/api'
import { getConfigSourceList } from '@/api/api'

export const EngineerMixin = {
  data () {
    return {
      produceList: [],
      sourceList: []
    }
  },
  computed: {
  },
 
  created() {

  },
  methods: {
    getSourceList(params) {
      let that = this;
      getConfigSourceList(params).then((res)=>{
        if(res) {
          that.sourceList = res.data.operatorList;
        }
      });
    },
    initEngineerProduce(params) {
      let that = this;
      getEngineerProduceList(params).then((res)=>{
        if(res) {
          that.produceList = res;
        }
      });
    }
  }
}